 // 定义路由规则
// import { Route, Switch } from 'react-router-dom'

// import React, { Component } from 'react'

// import Home from '../views/router5-view/Home'
// import Detail from '../views/router5-view/Detail'
// type Props = {}

// type State = {}


// export default class Index extends Component<Props, State> {
//     state = {}

//     render() {
//         return (
//             <Switch>
//                 <Route path='/home' component={Home}></Route>
//                 <Route path='/detail' component={Detail}></Route>
//             </Switch>
//         )
//     }
// }
